package cn.openea.perpartner.payment.web.coupon.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment_coupon")
public class Coupon implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private Long id;
    @ApiModelProperty(value = "优惠券ID")
    private Long couponId;
    @ApiModelProperty(value = "批次ID")
    private Long batchId;
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "用户昵称")
    private String nickName;
    @ApiModelProperty(value = "优惠券状态",notes = "0：未使用，1：已使用，2：已过期")
    private String status;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "领取时间")
    private String createTime;
    @ApiModelProperty(value = "有效时间")
    private String validateTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;



}

